package com.atguigu05.field;

/**
 * ClassName: fieldTest
 * Package: com.atguigu05.field
 * Description:
 *
 * @Author ZY
 * @Create 13:16
 * @Version 1.0
 */
public class fieldTest {
    public static void main(String[] args) {
        Order o1 = new Order();
        System.out.println(o1.orderId);

    }

}

class Order{
    int orderId = 1;

    {
        orderId = 2;
    }

    public Order(){
        super();
        orderId = 3;
    }

}
